﻿
    <?php
    //跨域获取ip全部源码
    $q=$_GET["q"];
	$ch=curl_init();
    curl_setopt($ch,CURLOPT_URL,$q);
    curl_setopt($ch,CURLOPT_HEADER,0);
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
    echo $data=curl_exec($ch);
    curl_close($ch);

	
    ?>
